<template>
    <h1 class="title">
        Vue3 组件间通信
    </h1>
    <hr>
    <div class="container-fluid wraper">
        
        <div class="row">
            <div class="col-xs-3 col-md-3 col-lg-3 col-xl-3">
                <!-- 导航区 -->
                <router-link active-class="active" class="list-group-item" to="/props">1.props</router-link>
                <router-link active-class="active" class="list-group-item" to="/event">2.自定义事件</router-link>
                <router-link active-class="active" class="list-group-item" to="/mitt">3.mitt</router-link>
                <router-link active-class="active" class="list-group-item" to="/model">4.v-model</router-link>
                <router-link active-class="active" class="list-group-item" to="/attrs">5.$attrs</router-link>
                <router-link active-class="active" class="list-group-item" to="/parent">6.$refs、$parent</router-link>
                <router-link active-class="active" class="list-group-item" to="/provide">7.provide、inject</router-link>
                <router-link active-class="active" class="list-group-item" to="/pinia">8.pinia</router-link>
                <router-link active-class="active" class="list-group-item" to="/slot">9.slot</router-link>
                <router-link active-class="active" class="list-group-item" to="/readonly">10.readonly和shallowReadonly</router-link>
                <router-link active-class="active" class="list-group-item" to="/customRef">11.customRef</router-link>
                <router-link active-class="active" class="list-group-item" to="/teleport">12.Teleport</router-link>
                <router-link active-class="active" class="list-group-item" to="/suspense">13.Suspense</router-link>
            </div>
        </div>
        <div class="col-xs-9 col-md-9 col-lg-9 col-xl-9">
            <div class="panel-body">
                <!-- 占位一个展示区 -->
                <router-view></router-view>
            </div>
        </div>
    </div>
</template>

<style>
.active{
    background-color: #c20000;
    color: #ffffff;
}
.list-group-item{
    height: 50px;
    line-height: 50px;
}
.title{
    text-align: center;
}
.wraper{
    display: flex;
    justify-content: space-between;
}
.row{
    width: 30%;
    border: 1px #000000 solid;
}
.col-xs-9{
    width: 60%;
}
a{
    display: block;
    width: 100%;
    text-align: center;
    font-size: 24px;
    height: 40px;
    border-top: 1px #000000 solid;
    text-decoration: none;
    color: #000000;
}
</style>